package com.itheima.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * 检查组
 */
@Table(name = "t_checkgroup")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class CheckGroup implements Serializable {
    @Id
    private Integer id;//主键
    private String code;//编码
    private String name;//名称
    @Column(name = "helpCode")
    private String helpCode;//助记
    private String sex;//适用性别
    private String remark;//介绍
    private String attention;//注意事项
    @Transient
    private List<CheckItem> checkItems;//一个检查组合包含多个检查项

}
